package cn.zhoutao.org.domain;

import cn.zhoutao.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department extends BaseDomain {
    private String sn;
    private String name;

    //我的儿子们
    @JsonInclude(JsonInclude.Include.NON_EMPTY)  //集合不为空才返回
    private List<Department> children = new ArrayList<>();
    /**
     * 部门的上级分类层级ID
     */
    @ApiModelProperty("部门的上级分类层级ID")
    private String dirPath;
    private Integer state;
    private Long manager_id;
    /**
     * 部门管理员
     */
    private Employee manager;
    private Long parent_id;
    /**
     * 上级部门
     */
    private Department parent;
    private Long shop_id;


}
